package com.example.vue_shop.components.userrole.entity;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * user_role
 * @author lipw
 */
@Data
@ApiModel(value = "UserRole", description = "用户角色中间表")
public class UserRole implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty( name = "id", value = "ID", example = "1", dataType =
            "int", hidden = true)
    private Integer id;

    /**
     * 用户Id
     */
    @ApiModelProperty( name = "userId", value = "用户Id", example = "1",
            dataType = "int")
    private Integer userId;

    /**
     * 角色Id
     */
    @ApiModelProperty( name = "roleId", value = "角色Id", example = "1",
            dataType = "int")
    private Integer roleId;

    private static final long serialVersionUID = 1L;
}